var defBarChartOption = {
	backgroundColor: 'white',
	tooltip: {
		trigger: 'axis',
        formatter:'{b}<br/>{a} : {c}mm'
	},
	toolbox: {
		show: true
	},
	calculable: true,
	xAxis: [{
		name: '日期',
		type: 'category'
	}],
	yAxis: [{
		name: '雨量(mm)',
		type: 'value'
	}],
	series: [{
		name: '降雨量',
		type: 'bar'
	}]
};

function barExtend(data) {
	var chartOption = $.extend(true, {}, defBarChartOption, {
		xAxis: [{
			data: data.time
		}],
		series: [{
			data: data.value
		}]
	});
	return chartOption;
}